DIRHEAD := /home/xcy/workspace/trunk/Server/src
src := $(wildcard ../*.c) $(wildcard ../*.cpp)
src += $(wildcard $(DIRHEAD)/common/*.c) $(wildcard $(DIRHEAD)/common/*.cpp)
src += $(wildcard ../../../proto/*.cc)
dir := $(notdir $(src)) 
obj := $(patsubst %.c,./obj/%.o,$(patsubst %.cc,./obj/%.o,$(patsubst %.cpp,./obj/%.o,$(dir))))
all:
	@echo $(src)
	@echo "---------------------"
	@echo $(dir)
	@echo "---------------------"
	@echo $(obj)
